import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';

@Schema({ collection: 'MusicList' })
export class MusicList extends Document {
  @Prop({ required: true })
  name: string;
  @Prop({ required: true })
  url: string;
  @Prop({ required: true })
  md5: string;
  @Prop({ required: true })
  create_date: string;
}
export const MusicListSchema = SchemaFactory.createForClass(MusicList);
